#include "SafeHome.h"
#include "Displayer.h"
#include "Control_Peripheral.h"
#include "Alarm.h"
#include "DoorSensor.h"
#include "HeatSensor.h"
#include "Lines.h"
#include "MotionDetector.h"
#include "O2Sensor.h"
#include "SmokeSensor.h"

SafeHome::SafeHome(void)
{
}
SafeHome::~SafeHome(void)
{
}


	
void SafeHome::run(void)
{
	exchange_data();
}
void SafeHome::close(void)
{
}
void SafeHome::alarm(void)
{
}
void SafeHome::error_handling(void)
{
}

//first 

void SafeHome::exchange_data(void)
{
	handl_password();
	active_system();
	deploy_system();
	
}
void SafeHome::deploy_system(void)
{
	read_sensor();
	analysis_setting();
	form_display();
	produce_alarm_signal();
	make_phone();
}
void SafeHome::handl_password(void)
{
	//after some operation
	show_message_status();
}
void SafeHome::active_system(void)
{
	//after the needded operation 
	show_message_status();
}
void SafeHome::show_message_status(void)
{
}
void SafeHome::monitor_sensor(void)
{

}


//second

void SafeHome::analysis_setting(void)
{
	get_reply();
	generate_alarming();
	select_phonenumber();
}
void SafeHome::read_sensor(void)
{
}
void SafeHome::form_display(void)
{
}
void SafeHome::make_phone (void)
{
}
void SafeHome::produce_alarm_signal(void)
{
}



//third 
void SafeHome::get_reply(void)
{
}
void SafeHome::select_phonenumber(void)
{
}
void SafeHome::generate_alarming(void)
{
}
